package vip.xiaonuo.facedoor.modular.device.listener;

import org.springframework.context.ApplicationEvent;

public class DeviceChangeEvent extends ApplicationEvent {

    private DeviceChangeTypeEnum changeType;

    private DeviceSourceEnum deviceSource;

    public DeviceSourceEnum getDeviceSource() {
        return deviceSource;
    }

    public DeviceChangeTypeEnum getChangeType() {
        return changeType;
    }

    public DeviceChangeEvent(DeviceChangeTypeEnum changeType,DeviceSourceEnum deviceSource, Object source) {
        super(source);
        this.changeType = changeType;
        this.deviceSource = deviceSource;
    }
}
